/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package essai;

import java.io.*;import javax.servlet.*;import javax.servlet.http.*;

/**
 *
 * @author Danicela
 */
public class HelloWorld extends HttpServlet {

    @Override
    public void doGet(HttpServletRequest req, HttpServletResponse res)
            throws ServletException, IOException {
// type mime du résultat retourné
        res.setContentType("text/html");
// récupère le flux de sortie vers le client
        PrintWriter out = res.getWriter();
        out.println("<html>");
        out.println("<head><title>Hello World</title></ head >");
        out.println("<body>");
        out.println("<font size=\"+3\">Hello World<br/></font>");
        out.println("</ body >");
        out.println("</ html >");
    }
}

